/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lczyfz.campusinfo.common.persistence.CrudDao;
import com.lczyfz.campusinfo.common.persistence.annotation.MyBatisDao;
import com.lczyfz.campusinfo.modules.sys.entity.User;

/**
 * 用户信息DAO接口
 * @author 陈维乾
 * @version 2018-03-31
 */
@MyBatisDao
public interface CampusinfoUserDao extends CrudDao<User> {
	
	public User getByIdAndGroupid(@Param("id")String id,@Param("groupId")String groupId);
	
	public List<User> findAllUser();
	
	public int checkLoginName(String loginName);
	
	public int checkEamil(String email);
	
	public int insetUser(User user);
	
	public int updatePasswordByloginName(@Param("loginName")String loginName,@Param("passwordNew")String passwordNew);
	
	public int checkIdAndPassword(@Param("id")String id,@Param("password") String password);
	
	public int checkEmailByUserId(@Param("email") String email,@Param("id")String id);
	
	public int updateUserInfo(User user);
	
	public int checkVerifyUser(User user);
}